import Vue from 'vue'
import App from './App.vue'

import VueRouter from 'vue-router';
import Cate from './views/Cate.vue';
import Item from './views/Item.vue';
import My from './views/My.vue';
import Title from './views/Title.vue';

Vue.config.productionTip = false

Vue.use(VueRouter)

let routes = [{
    path: '/title',
    component: Title
  }, {
    path: '/cate',
    component: Cate
  },
  {
    path: '/item',
    component: Item
  },
  {
    path: '/my',
    component: My
  }
]

let router = new VueRouter({
  routes
})

new Vue({
  render: h => h(App),
  router
}).$mount('#app')